export function useServer() {
  const isDev = import.meta.env.MODE === "development"
  if (isDev) {
    const server = import.meta.env.VITE_IP
    return server
  }
  const server = location.origin
  return server
}
